<template>
  <el-container class="h-100">
    <el-header style="background: #79bce7;">
      header
      <!-- <LangSelect /> -->
      <lang-select></lang-select>
    </el-header>
    <el-container style="overflow: auto;">
      <el-aside width="200px">
        <el-menu
          default-active="2"
          class="el-menu-vertical-demo h-100"
          @open="handleOpen"
          @close="handleClose">
          <el-submenu index="1">
            <template slot="title">
              <i class="el-icon-location"></i>
              <span>{{$t('route.menu1')}}</span>
            </template>
            <el-menu-item-group>
              <template slot="title">{{$t('route.menu1')}}</template>
              <el-menu-item index="1-1">{{$t('route.menu1-1')}}</el-menu-item>
              <el-menu-item index="1-2">{{$t('route.menu1-2')}}</el-menu-item>
            </el-menu-item-group>
            <el-menu-item-group title="分组2">
              <el-menu-item index="1-3">{{$t('route.menu1-2')}}</el-menu-item>
            </el-menu-item-group>
            <el-submenu index="1-4">
              <template slot="title">{{$t('route.menu1-2')}}</template>
              <el-menu-item index="1-4-1">{{$t('route.menu1-2')}}</el-menu-item>
            </el-submenu>
          </el-submenu>
          <el-menu-item index="2">
            <i class="el-icon-menu"></i>
            <span slot="title">{{$t(test)}}</span>
          </el-menu-item>
          <el-menu-item index="3" disabled>
            <i class="el-icon-document"></i>
            <span slot="title">{{$t('route.menu1-3')}}</span>
          </el-menu-item>
          <el-menu-item index="4">
            <i class="el-icon-setting"></i>
            <span slot="title">{{$t('route.menu1-2-2')}}</span>
          </el-menu-item>
        </el-menu>
      </el-aside>
      <el-main>
        <ModelFlowEditor />
      </el-main>
    </el-container>
  </el-container>
</template>
<script>
import ModelFlowEditor from "../g6/model-flow-editor";
import LangSelect from "@/components/common/LangSelect";
export default {
  components: { ModelFlowEditor, LangSelect },
  name: "algon-one",
  title: "布局一",
  data() {
    return {
      test: 'route.menu1-2-1'
    };
  },
  methods: {
    handleOpen(key, keyPath) {
      console.log(key, keyPath);
    },
    handleClose () {}
  }
};
</script>